﻿package java_45;

import java.util.Scanner;

public class code094 {
    public static void main(String[] args) {
		int count = 0;
		String likai;
		Scanner input= new Scanner(System.in);
		for (int i = 1; i <=5; i++) {
			System.out.println(i+1);
			for(int j =0;j<3;j++){
				System.out.println("y/n");
			likai=input.next();
			if("y".equals(likai)){
				break;
			}
		
				System.out.print("买一件衣服");
			count++;
		}
		System.out.println("结账");
        
    }
    System.out.println("总共买了"+count+"件衣服");
    likai= input.next();
    }
}